package com.guanganren.db.dao.impl;

import java.util.List;

import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

import com.guanganren.db.dao.AreaDao;
import com.guanganren.db.entity.Area;

public class AreaDaoImpl extends HibernateDaoSupport implements AreaDao {

	@Override
	public List<Area> getAreaByParentId(String id) throws Exception {
		List<Area> list=null;
		try{
		String queryString = "from com.guanganren.db.entity.Area a where a.area.areaId=?";
		list = this.getHibernateTemplate().find(queryString,new Integer(id));
		}catch(Exception ex){
			throw new Exception();
		}
		return list;
	}

	
}
